/*
package com.bl.commons.service.impl;

import cn.hutool.core.util.NumberUtil;
import com.bl.commons.models.entity.SysUser;
import com.bl.commons.service.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.userdetails.User;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNotFoundException;
import org.springframework.stereotype.Service;


*/
/**
 * ⾃定义⼀个UserDetailsService接⼝实现类进⾏⽤户认证信息封装
 *
 * @author bl
 * @date 2023/10/19
 *//*

@Service
public class SysUserDetailsServiceImpl implements UserDetailsService {

    @Autowired
    private SysUserService userService;


    @Override
    public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException {
        //获取用户信息
        SysUser user = userService.loadUserByUsername(username);
        return new User(user.getUserName(),user.getPassword(),null);
    }

    public static void main(String[] args) {
        System.out.println(NumberUtil.calculate("(2*(9-2)+1)/7"));
    }
}
*/
